<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
	<title>交易中心</title>
     <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/semantic.css"/>
     <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/common.css">
     <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/main.css">
     <script src="__PUBLIC__/Js/zepto.min.js" type="text/javascript"></script>
     <script src="__PUBLIC__/Js/main.js" type="text/javascript"></script>
     <script type="text/javascript" src="__PUBLIC__/Js/jquery-1.6.1.min.js"></script>
     <script> 
     $(function(){ 
     $(".add").click(function(){
     var t=$(this).parent().find('input[class*=text_box]'); 
     t.val(parseInt(t.val())+1) 
     setTotal(); 
     }) 
     $(".min").click(function(){ 
     var t=$(this).parent().find('input[class*=text_box]'); 
     t.val(parseInt(t.val())-1) 
     if(parseInt(t.val())<0){ 
     t.val(0); 
     } 
     setTotal(); 
     }) 
     function setTotal(){ 
     var s=0; 
     $("#tab td").each(function(){ 
     s+=parseInt($(this).find('input[class*=text_box]').val())*parseFloat($(this).find('span[class*=price]').text()); 
     }); 
     $("#total").html(s.toFixed(2)); 
     } 
     setTotal(); 

     }) 
     </script> 

     </head>
     <body>
    
<div class="boxtwo">
    <div class="ui action fluid left icon input visible">
      <i class="search icon"></i>
      <input type="text" placeholder="请输入...">
      <div class="ui red mini btn" style="border-top-left-radius: 0!important;
         border-bottom-left-radius: 0!important;">搜索</div>
    </div>
</div>
<form action="__URL__/eb_sell" method="post" name="form1" id="form1">
    <div class="pusher">
       <div class="ui vertical padd">
                <div class="">
                    <div class="boxthree">
                        <div class="ui equal width stackable internally celled grid">
                         <volist name="rs" id="vo">  
                             <div class="center aligned  row">
                                <div class="img">
                                     <a href="#">
                                         <div class="m-r-img">
                                             <img class="ui top aligned tiny image" src="__PUBLIC__/Images/jinguo.jpg">
                                         </div>
                                     </a>
                                 </div>
                               
                             <div class="hot-info">
                                <div class="hto-p">
                                    <h3 class="hto-ph3 m-b-5 f28 m-t-27">交易编号：{$vo.id}</h3>
                                    
                                        <p>库存：{$vo.money}个</p>

                                        <table id="tab" style="display:inline-block;"> 
                                            <tr> 
                                                <td style="font-size:12px;"> 
                                                    <span class="lleft">单价&nbsp:</span><span class="price lleft">1.00</span><br>
                                                    <input class="min" name="" type="button" value="-" /> 
                                                    <input style="border-radius: 0;padding: 5px; width: 20%;text-align: center;border-left: none;border-right: none;float:left;" class="text_box" name="ePoints" type="text" value="1" /> 
                                                    <input class="add" name="" type="button" value="+" /> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                        <p style="color:#f00; margin-top:-5px;">总价：<label id="total"></label></p> 
                                </div>
                            </div>

                            <div class="hot-btn">
                                <div class="hto-r m-t-27 ">
                                <input name="id" type="hidden" class="ipt"  id="id" value="{$vo.id}"/>
                                <td colspan="2"><input type="submit" name="Submit1" value="买入" class="red ui mini btn" id="Submit1" /></td>
                                    
                                </div>
                            </div>

                            </div>
                            </volist>
                        </div>
                    </div>

            </div>
                      
        </div>

       </div>
</form>
 <div class="main-bottom">
                  <div class="col-xs-3">
                    <a href="__APP__/Gouwu/Buycp2/" class="active">
                      <i class="home icon"></i>
                      <div>首页</div>
                    </a>
                  </div>
                  <div class="col-xs-3">
                    <a href="__APP__/Gouwu/Buycp/" class="">
                      <i class="star icon"></i>
                      <div>兑换商城</div>
                    </a>
                  </div>
                  <div class="col-xs-3">
                    <a href="__APP__/Index/index/" class="">
                      <i class="user icon"></i>
                      <div>个人中心</div>
                    </a>
                  </div>
                  <div class="col-xs-3">
                    <a href="__APP__/Gouwu/shopCar/" class="">
                      <i class="shop icon"></i>
                      <div>购物车</div>
                    </a>
                  </div>
            </div>
        
</body>
</html>